<div class="navbar main-nav ">
    <div class="navbar-inner">
        <style>
            .main-nav{
                position: relative;
            }
            .main-nav a.brand
            {
                width:35px;
            }
            .main-nav a.brand div{
                height:50px;
                position:absolute;
                top:11px;
                left:18px;
                font-family: "WCWunderbachBtaDemiBold";
                font-size:27px;
                text-shadow: 0px 0px 10px #ddd;
                filter: dropshadow(color=#ddd, offx=0, offy=0);
            }

        </style>
        <!--<div style="position:absolute;left:50px;top:-8px;z-index: 10;opacity:0.95"><span class="badge badge-warning">β</div>-->
        <a href="<?php echo base_url() ?>" class="brand"><div>MH</div></a>

        <ul class="nav">

            <li class="divider-vertical"></li>
            <li  class="<?php echo $this->uri->segment(1) == '' ? 'active' : '' ?>"><a href="<?php echo base_url() ?>"><i class="icon icon-home"></i> หน้าแรก</a></li>
            <li class="divider-vertical"></li>
            
            <li><a href="<?php echo base_url() ?>contest/announce/list"><i class="icon icon-certificate"></i> ประกาศผลรางวัล</a></li>
            <li class="divider-vertical"></li>
        </ul>

        <?php
        if (!is_null($user_id)):
            ?>
            <ul class="pull-right main-nav-profile nav">
                <li class="divider-vertical"></li>
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        <img src="https://graph.facebook.com/<?php echo $fb_id ?>/picture" class="avatar img-polaroid" alt="<?php echo $fullname ?>"/>
                        <span class="fullname">
                            <?php echo $fullname ?>
                        </span>
                        <b class="caret"></b>
                    </a>

                    <ul class="dropdown-menu">


                        <li><a href="<?php echo base_url() ?>admin"><i class="icon-key"></i> Admin</a></li>
                        <?php
                        if ($is_admin == 1):
                            ?>
                            <li><a href="<?php echo base_url() ?>my-profile"><i class="icon-pencil"></i> แก้ไขโปรไฟล์</a></li>
                            <?php
                        endif;
                        ?>
                    </ul>

                </li>
                <li class="divider-vertical"></li>
                <li><a href="<?php echo base_url() ?>logout?redirect=<?php echo base64_encode(current_url()) ?>"><i class="icon-signout"></i> ออกจากระบบ</a></li>

            </ul>
            <div class="clearfix"></div>  
            <?php
        endif;
        ?>
    </div>

</div>